package com.mew.auc.provide;

import com.mew.common.rest.login.ForcedOfflineRequest;
import com.zebra.common.ServerBriefInfo;
import com.zebra.common.ZbmMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

@Component
@FeignClient(value = "fagp-ratel")
public interface RegisterFeignService {

    @GetMapping(value = "/get/gateway")
    @ResponseBody
    ServerBriefInfo getGateway();


    @PostMapping(value = "/offline/forced")
    @ResponseBody
    Integer forcedOffline(@RequestBody ForcedOfflineRequest request);
}
